$(function(){
	/**-------  后端功能相关  ---------*/
	// 跳转新增图片
	$("#advPhotoAdd").live("click",function(){
		window.location.href = server+"/sysBootScreen/toAdd";
	});
	
	$("#form1").ajaxForm({
		dataType:"json",
		success:function(data){
			if(data.status == "success"){
				$("#showImg").attr("src",server+"/"+data.msg);
				$("#imgUrl").val(data.msg);
			}else{
				alert(data.msg);
			}
		},
		error:function(){
			alert("上传图片异常...");
		}
	});
});

// 跳往修改
function update(id){
	window.location.href = server+"/sysBootScreen/toUpdate?id="+id;
}

// 图片上传
function doUploadFile(){
	$("#form1").submit();
}


